using System;
using System.Collections;
using UnityEngine;

public class SpotlightTransition : Transition
{
	public override string Name
	{
		get
		{
			return "Spotlight";
		}
	}

	public override IEnumerator CoTransitionIn(float duration)
	{
		yield return new WaitForSeconds(0.2f);
		GUISceneSpotlight.Hide(duration, "Spotlight");
		yield return new WaitForSeconds(duration);
		yield break;
	}

	public override IEnumerator CoTransitionOut(float duration)
	{
		GUISceneSpotlight.Show(duration, "Spotlight");
		yield return new WaitForSeconds(duration);
		yield break;
	}
}
